package com.example.mailsender.Service;

import com.example.mailsender.dao.MailDao;
import org.springframework.core.io.InputStreamResource;
import org.springframework.web.multipart.MultipartFile;

import javax.mail.MessagingException;
import java.io.IOException;
import java.io.InputStream;

public interface MailService {
    String sendMail(MailDao mailDao);
    String sendMailHtml(MailDao mailDao) throws MessagingException;
    String sendMailHtmlwithOther(MailDao mailDao, InputStreamResource file,String fileName) throws MessagingException, IOException;
}
